import request from '/@/utils/request';
import { AxiosRequestConfig } from 'axios';

/*************** 法律法规接口 ****************/
// 法律清单列表
export const getRegulationList = (parameter: object = {}) => {
    return request({
        url: '/SMS/LegalCode/QueryPageList',
        method: 'get',
        data: parameter,
        multiPartFormData: false,
    } as AxiosRequestConfig);
};
//  提交法律清单列表
export const postRegulation = (parameter: object = {}) => {
    return request({
        url: '/SMS/LegalCode/Add',
        method: 'post',
        data: parameter,
        multiPartFormData: true,
    } as AxiosRequestConfig);
};
//修改法律清单
export const postChangeRegulation = (parameter: object = {}) => {
    return request({
        url: '/SMS/LegalCode/Update',
        method: 'post',
        data: parameter,
        multiPartFormData: true,
    } as AxiosRequestConfig);
};

//删除法律清单
export const postDeleteRegulation = (parameter: object = {}) => {
    return request({
        url: '/SMS/LegalCode/Delete',
        method: 'post',
        data: parameter,
        multiPartFormData: false,
    } as AxiosRequestConfig);
};

/*************** 制度文档接口 ****************/
export const getSystemDocumentApi = (params?: object) => {
    return request({
        url: '/sysDictType/dropDown',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}


/*************** 危化品接口 ****************/
// 危化品库存查询
export const getStocksDangerousChemicalsApi = (params?: object) => {
    return request({
        url: '/SMS/ChemicalsIventory/Statistics',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}

// 危化品基础信息
export const getBasicInfoHazardousChemicalApi = (params?: object) => {
    return request({
        url: '/SMS/ChemicalBasicInformation/QueryV2',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
export const deleteBasicInfoHazardousChemicalApi = (params?: object) => {
    return request({
        url: '/SMS/ChemicalBasicInformation/Delete',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
export const addBasicInfoHazardousChemicalApi = (params?: object) => {
    return request({
        url: '/SMS/ChemicalBasicInformation/Create',
        method: 'post',
        data: params,
        multiPartFormData: true,
    } as AxiosRequestConfig);
}
export const updateBasicInfoHazardousChemicalApi = (params?: object) => {
    return request({
        url: '/SMS/ChemicalBasicInformation/Update',
        method: 'post',
        data: params,
        multiPartFormData: true,
    } as AxiosRequestConfig);
}
// 获取区域位置
export const getObtainLocationHazardousChemicalsApi = (params?: object) => {
    return request({
        url: '/SMS/ChemicalSpatialLocation/GetAvailableTree',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//查看详情
export const getHazardousChemicalsDetailApi = (params?: object) => {
    return request({
        url: '/SMS/ChemicalBasicInformation/DeatilV2',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}

// 危化品出入库管理
// 查询
export const getStocksDangerousChemicalsInApi = (params?: object) => {
    return request({
        url: '/SMS/ChemicalsIventory/Query',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 删除
export const deleteStocksDangerousChemicalsInApi = (params?: object) => {
    return request({
        url: '/SMS/ChemicalsIventory/Delete',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 新增
export const addPutDangerousChemicalsInApi = (params?: object) => {
    return request({
        url: '/SMS/ChemicalsIventory/Create',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
export const addStocksDangerousChemicalsInApi = (params?: object) => {
    return request({
        url: '/SMS/ChemicalsIventory/CreateStockOut',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 更新
export const updateStocksDangerousChemicalsInApi = (params?: object) => {
    return request({
        url: '/SMS/ChemicalsIventory/UpdateV2',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 查询订单id
export const queryStocksDangerousChemicalsInApi = (params?: object) => {
    return request({
        url: '/SMS/ChemicalsIventory/CreateOrder',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//查询危化品下拉列表
export const queryStocksDangerousChemicalsInApi1 = (params?: object) => {
    return request({
        url: '/SMS/ChemicalBasicInformation/List',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}

// 获取父节点位置信息
export const getParentAreaApi = (params?: object) => {
    return request({
        url: '/SMS/ChemicalSpatialLocation/GetAvailableLocationV2',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}

//查询危化品仓管员
export const getChemicalsCargoManagerApi = (params?: object) => {
    return request({
        url: '/sysEmp/GetUserSelectorByPos',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}

//出库查询危化品信息
export const getChemicalsOutApi = (params?: object) => {
    return request({
        url: '/SMS/ChemicalsIventory/GetStockList',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}

/*************** 三同时管理 ***************/
// 查询
export const getConcurrentManagementApi = (params?: object) => {
    return request({
        url: '/SMS/project/page',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 创建
export const AddConcurrentManagementApi = (params?: object) => {
    return request({
        url: '/SMS/project/create',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}

// 删除
export const deleteConcurrentManagementApi = (params?: object) => {
    return request({
        url: '/SMS/project/delete',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}

// 更新
export const updateConcurrentManagementApi = (params?: object) => {
    return request({
        url: '/SMS/project/update',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 项目详情
export const getProjectDetailApi = (params?: object) => {
    return request({
        url: '/SMS/projectTodo/queryV3',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}


// 项目代办
// 查询
export const getProjectTodoApi = (params?: object) => {
    return request({
        url: '/SMS/projectTodo/queryV2',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 文件上传
export const uploadProjectFileApi = (params?: object) => {
    return request({
        url: '/SMS/projectTodo/SubmitFileOnceV2',
        method: 'post',
        data: params,
        multiPartFormData: true,
    } as AxiosRequestConfig);
}
//删除
export const deleteProjectFileApi = (params?: object) => {
    return request({
        url: '/SMS/projectTodo/DeleteFile',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}

export const deleteProjectFileApiV2 = (params?: object) => {
    return request({
        url: '/SMS/projectTodo/DeleteFileV2',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 上传阶段代办子项文件
export const uploadProjectFileApiV2 = (params?: object) => {
    return request({
        url: '/SMS/projectTodo/SubmitFileOnceV3',
        method: 'post',
        data: params,
        multiPartFormData: true,
    } as AxiosRequestConfig);
}

// 获取项目阶段
export const GetProjectPhaseApi = (params?: object) => {
    return request({
        url: '/SMS/Stage/GetList',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}

// 阶段代办子项
// 查询阶段代办子项
export const getProjectTodoSubItemApi = (params?: object) => {
    return request({
        url: '/SMS/StageTodoSubItem/List',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 创建
export const addProjectTodoSubItemApi = (params?: object) => {
    return request({
        url: '/SMS/StageTodoSubItem/Create',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 更新
export const updateProjectTodoSubItemApi = (params?: object) => {
    return request({
        url: '/SMS/StageTodoSubItem/Update',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//删除
export const deleteProjectTodoSubItemApi = (params?: object) => {
    return request({
        url: '/SMS/StageTodoSubItem/Delete',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}

/*************** 机构职责 ***************/
// 查询
export const getOrgResponsibilityApi = (params?: object) => {
    return request({
        url: '/SMS/SmsDocument/GetPage',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 创建
export const addOrgResponsibilityApi = (params?: object) => {
    return request({
        url: '/SMS/SmsDocument/Create',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 更新
export const updateOrgResponsibilityApi = (params?: object) => {
    return request({
        url: '/SMS/SmsDocument/Update',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 删除
export const deleteOrgResponsibilityApi = (params?: object) => {
    return request({
        url: '/SMS/SmsDocument/Delete',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 详情
export const getOrgResponsibilityDetailApi = (params?: object) => {
    return request({
        url: '/SMS/SmsDocument/GetDetail',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}

/*************** 应急处置卡 ***************/
// 查询
export const getEmergencyDisposalCardApi = (params?: object) => {
    return request({
        url: '/SMS/SMSPostEmergencyResponse/GetPage',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 创建
export const addEmergencyDisposalCardApi = (params?: object) => {
    return request({
        url: '/SMS/SMSPostEmergencyResponse/Create',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 更新
export const updateEmergencyDisposalCardApi = (params?: object) => {
    return request({
        url: '/SMS/SMSPostEmergencyResponse/Update',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 删除
export const deleteEmergencyDisposalCardApi = (params?: object) => {
    return request({
        url: '/SMS/SMSPostEmergencyResponse/Delete',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 详情
export const getEmergencyDisposalCardDetailApi = (params?: object) => {
    return request({
        url: '/SMS/SMSPostEmergencyResponse/GetDetail',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 获取岗位信息
export const getPostDetailApiV2 = (params?: object) => {
    return request({
        url: '/sysPos/list',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}

// 获取岗位信息
export const getPostDetailApi = (params?: object) => {
    return request({
        url: '/SMS/SmsSecurityResponsibilitiesService/GetList',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}

/*************** 变更管理台账 ***************/
//查询
export const getChangeLogListApi = (params?: object) => {
    return request({
        url: '/SMS/ChangeManagement/GetPage',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//新增
export const addChangeLogApi = (params?: object) => {
    return request({
        url: '/SMS/ChangeManagement/Create',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}

// 更新
export const updateChangeLogApi = (params?: object) => {
    return request({
        url: '/SMS/ChangeManagement/Update',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//删除
export const deleteChangeLogApi = (params?: object) => {
    return request({
        url: '/SMS/ChangeManagement/Delete',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 详情
export const getChangeLogDetailApi = (params?: object) => {
    return request({
        url: '/SMS/ChangeManagement/GetDetail',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 获取影响区域
export const getChangeLogAreaApi = (params?: object) => {
    return request({
        url: '/SMS/SMSDCRiskPartition/List',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}

/*************** 承诺卡 ***************/
//查询
export const getCommitmentCardApi = (params?: object) => {
    return request({
        url: '/SMS/PromiseCard/Page',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//新增
export const addCommitmentCardApi = (params?: object) => {
    return request({
        url: '/SMS/PromiseCard/Add',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//更新
export const updateCommitmentCardApi = (params?: object) => {
    return request({
        url: '/SMS/PromiseCard/Update',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//删除
export const deleteCommitmentCardApi = (params?: object) => {
    return request({
        url: '/SMS/PromiseCard/Delete',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//详情
export const getCommitmentCardDetailApi = (params?: object) => {
    return request({
        url: '/SMS/PromiseCard/Detail',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//通过员工id获取承诺卡
export const getCommitmentCardByEmployeeIdApi = (params?: object) => {
    return request({
        url: '/SMS/PromiseCard/GetByEmployeeId',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 获取员工id
export const getEmployeeIdApi = (params?: object) => {
    return request({
        url: '/sysEmp/selector',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}

/*************** 风险辨识清单 ***************/
//分页查询
export const getRiskIdentificationListApi = (params?: object) => {
    return request({
        url: '/SMS/SMSDCRiskIdentification/Page',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//新增
export const addRiskIdentificationApi = (params?: object) => {
    return request({
        url: '/SMS/SMSDCRiskIdentification/Add',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//修改
export const editRiskIdentificationApi = (params?: object) => {
    return request({
        url: '/SMS/SMSDCRiskIdentification/Update',
        method: 'put',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//删除
export const deleteRiskIdentificationApi = (params?: object) => {
    return request({
        url: '/SMS/SMSDCRiskIdentification/Delete',
        method: 'delete',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//详情
export const getRiskIdentificationApi = (params?: object) => {
    return request({
        url: '/SMS/SMSDCRiskIdentification/Detail',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//批量导入风险辨识清单
export const getRiskIdentificationUploadApi = (params?: object) => {
    return request({
        url: '/SMS/SMSDCRiskIdentification/BathAddByExcel',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//获取作业场所
export const getWorkPlaceApi = (params?: object) => {
    return request({
        url: '/SMS/SMSDCAnalysisUnit/List',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}

/*************** 风险辨识清单变更 ***************/
//新增
export const addRiskIdentifyListApi = (params?: object) => {
    return request({
        url: '/SMS/SMSDCRiskIdentificationChange/Add',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//更新
export const updateRiskIdentifyListApi = (params?: object) => {
    return request({
        url: '/SMS/SMSDCRiskIdentificationChange/Update',
        method: 'put',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//删除
export const deleteRiskIdentifyListApi = (params?: object) => {
    return request({
        url: '/SMS/SMSDCRiskIdentificationChange/Delete',
        method: 'delete',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//查询
export const getRiskIdentifyListApi = (params?: object) => {
    return request({
        url: '/SMS/SMSDCRiskIdentificationChange/Page',
        method: 'get',
        params: params,
    } as AxiosRequestConfig);
}
// 创建工作流审批
export const createRiskWorkFlowApi = (params?: object) => {
    return request({
        url: '/SMS/SMSDCRiskIdentificationChange/ApplySubimt',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//撤回工作流申请
export const revocationRiskWorkFlowApi = (params?: object) => {
    return request({
        url: '/SMS/SMSDCRiskIdentificationChange/ApplyRevocation',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}

/*************** 安全生产考核标准 ***************/
//查询
export const getSafetyProductionStandardApi = (params?: object) => {
    return request({
        url: '/SMS/SafetyAssessmentService/PageAppraisalForm',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//新增
export const addSafetyProductionStandardApi = (params?: object) => {
    return request({
        url: '/SMS/SafetyAssessmentService/CreateAppraisalForm',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//修改
export const editSafetyProductionStandardApi = (params?: object) => {
    return request({
        url: '/SMS/SafetyAssessmentService/UpdateAppraisalForm',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//删除
export const deleteSafetyProductionStandardApi = (params?: object) => {
    return request({
        url: '/SMS/SafetyAssessmentService/DeleteAppraisalForm',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}

/*************** 子项安全生产考核标准 ***************/
//新增
export const addSubSafetyProductionStandardApi = (params?: object) => {
    return request({
        url: '/SMS/SafetyAssessmentService/CreateAppraisalItem',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 查询
export const getSubSafetyProductionStandardApi = (params?: object) => {
    return request({
        url: '/SMS/SafetyAssessmentService/PageAppraisalItem',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//更新
export const editSubSafetyProductionStandardApi = (params?: object) => {
    return request({
        url: '/SMS/SafetyAssessmentService/UpdateAppraisalItem',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//删除
export const deleteSubSafetyProductionStandardApi = (params?: object) => {
    return request({
        url: '/SMS/SafetyAssessmentService/DeleteAppraisalItem',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}

/*************** 考核表和人的绑定关系 ***************/
//新建绑定关系
export const addRiskAssessmentRelationApi = (params?: object) => {
    return request({
        url: '/SMS/SafetyAssessmentService/CreateBinding',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//更新绑定关系
export const updateRiskAssessmentRelationApi = (params?: object) => {
    return request({
        url: '/SMS/SafetyAssessmentService/UpdateBinding',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//删除绑定关系
export const deleteRiskAssessmentRelationApi = (params?: object) => {
    return request({
        url: '/SMS/SafetyAssessmentService/DeleteBinding',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//查询绑定关系
export const getRiskAssessmentRelationApi = (params?: object) => {
    return request({
        url: '/SMS/SafetyAssessmentService/PageBinding',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 查询考核人信息
export const getRiskAssessmentPersonApi = (params?: object) => {
    return request({
        url: '/sysEmp/selector',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//查询员工信息
export const getRiskAssessmentEmployeeApi = (params?: object) => {
    return request({
        url: '/SMS/SafetyAssessmentService/GetEmpList',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//查询员工岗位信息
export const getRiskAssessmentEmployeePostApi = (params?: object) => {
    return request({
        url: '/sysPos/list',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//查询考核表信息
export const getRiskAssessmentTableApi = (params?: object) => {
    return request({
        url: '/SMS/SafetyAssessmentService/ListAppraisalForm',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}

/*************** 岗位应知卡 ***************/
//查询岗位应知卡
export const getJobCardApi = (params?: object) => {
    return request({
        url: '/SMS/KnownCard/Page',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 新增岗位应知卡
export const addJobCardApi = (params?: object) => {
    return request({
        url: '/SMS/KnownCard/Create',
        method: 'post',
        data: params,
        multiPartFormData: true,
    } as AxiosRequestConfig);
}
// 修改岗位应知卡
export const editJobCardApi = (params?: object) => {
    return request({
        url: '/SMS/KnownCard/Update',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 删除岗位应知卡
export const deleteJobCardApi = (params?: object) => {
    return request({
        url: '/SMS/KnownCard/Delete',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//通过员工id获取岗位应知卡
export const getJobCardByEmpIdApi = (params?: object) => {
    return request({
        url: '/SMS/KnownCard/FindCardByEmpId',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//获取岗位应知卡的详情
export const getJobCardDetailApi = (params?: object) => {
    return request({
        url: '/SMS/KnownCard/Detail',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}


/*************** 领导带班情况 ***************/
//查询
export const getLeaderClassApi = (params?: object) => {
    return request({
        url: '/SMS/DutyForm/Page',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//新增
export const addLeaderClassApi = (params?: object) => {
    return request({
        url: '/SMS/DutyForm/Create',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//修改
export const editLeaderClassApi = (params?: object) => {
    return request({
        url: '/SMS/DutyForm/Update',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//删除
export const deleteLeaderClassApi = (params?: object) => {
    return request({
        url: '/SMS/DutyForm/Delete',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 获取岗位
export const getPostApi = (params?: object) => {
    return request({
        url: '/SMS/DutyPserson/GetPosBydEmpId',
        method: 'get',
        params: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 添加值班人员
export const addDutyPersonApi = (params?: object) => {
    return request({
        url: '/SMS/DutyPserson/Create',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 查询值班人员
export const getDutyPersonApi = (params?: object) => {
    return request({
        url: '/SMS/DutyPserson/List',
        method: 'get',
        params: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//删除
export const deleteDutyPersonApi = (params?: object) => {
    return request({
        url: '/SMS/DutyPserson/Delete',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//更新值班人员信息
export const updateDutyPersonApi = (params?: object) => {
    return request({
        url: '/SMS/DutyPserson/Update',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}

/*************** 岗位职责台账 ***************/
//查询岗位职责台账
export const getJobDutyApi = (params?: object) => {
    return request({
        url: '/SMS/SmsSecurityResponsibilitiesService/GetPage',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//新增岗位职责台账
export const addJobDutyApi = (params?: object) => {
    return request({
        url: '/SMS/SmsSecurityResponsibilitiesService/Create',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//修改岗位职责台账
export const editJobDutyApi = (params?: object) => {
    return request({
        url: '/SMS/SmsSecurityResponsibilitiesService/Update',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//删除岗位职责台账
export const deleteJobDutyApi = (params?: object) => {
    return request({
        url: '/SMS/SmsSecurityResponsibilitiesService/Delete',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//获取岗位职责台账详情
export const getJobDutyDetailApi = (params?: object) => {
    return request({
        url: '/SMS/SmsSecurityResponsibilitiesService/GetDetail',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}

/*************** 安全生产费用提取 ***************/
//查询安全生产费用提取
export const getSafetyCostApi = (params?: object) => {
    return request({
        url: '/SMS/ProductionExtractionPlan/Page',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//新增安全生产费用提取
export const addSafetyCostApi = (params?: object) => {
    return request({
        url: '/SMS/ProductionExtractionPlan/Create',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//修改安全生产费用提取
export const editSafetyCostApi = (params?: object) => {
    return request({
        url: '/SMS/ProductionExtractionPlan/Update',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//删除安全生产费用提取
export const deleteSafetyCostApi = (params?: object) => {
    return request({
        url: '/SMS/ProductionExtractionPlan/Delete',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}

//查询安全生产费用项目
export const getSafetyCostItemApi = (params?: object) => {
    return request({
        url: '/SMS/ProductionExtraction/List',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//新增安全生产费用项目
export const addSafetyCostItemApi = (params?: object) => {
    return request({
        url: '/SMS/ProductionExtraction/Create',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//修改安全生产费用项目
export const editSafetyCostItemApi = (params?: object) => {
    return request({
        url: '/SMS/ProductionExtraction/Update',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//删除安全生产费用项目
export const deleteSafetyCostItemApi = (params?: object) => {
    return request({
        url: '/SMS/ProductionExtraction/Delete',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 年度安全生产费用提取
export const getSafetyCostYearApi = (params?: object) => {
    return request({
        url: '/SMS/ProductionExtraction/Extraction',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}

/*************** 安全生产费用-计划项目子项目 ***************/
//查询安全生产计划
export const getSafetyPlanApi = (params?: object) => {
    return request({
        url: '/SMS/SafetyProductionCosts/Page',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//新增安全生产计划
export const addSafetyPlanApi = (params?: object) => {
    return request({
        url: '/SMS/SafetyProductionCosts/Create',
        method: 'post',
        data: params,
        multiPartFormData: true,
    } as AxiosRequestConfig);
}
//修改安全生产计划
export const editSafetyPlanApi = (params?: object) => {
    return request({
        url: '/SMS/SafetyProductionCosts/Update',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//删除安全生产计划
export const deleteSafetyPlanApi = (params?: object) => {
    return request({
        url: '/SMS/SafetyProductionCosts/Delete',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 获取安全生产计划详情
export const getSafetyPlanDetailApi = (params?: object) => {
    return request({
        url: '/SMS/SafetyProductionCosts/Detail',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}

// 获取安全生产计划详情
export const getSafetyPlanDetailApiV2 = (params?: object) => {
    return request({
        url: '/SMS/ProductionExtraction/Extraction',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}

/*************** 安全生产责任考核-季度考核 ***************/
//查询安全责任考核
export const getSafetyResponsibilityApi = (params?: object) => {
    return request({
        url: '/SMS/SafetyAssessmentBusinessService/Page',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//删除安全责任考核
export const deleteSafetyResponsibilityApi = (params?: object) => {
    return request({
        url: '/SMS/SafetyAssessmentBusinessService/Delete',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//创建安全责任考核
export const addSafetyResponsibilityApi = (params?: object) => {
    return request({
        url: '/SMS/SafetyAssessmentBusinessService/Create',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//修改安全责任考核
export const updateSafetyResponsibilityApi = (params?: object) => {
    return request({
        url: '/SMS/SafetyAssessmentBusinessService/Update',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
} 
// 获取员工考核模板id
export const getEmployeeAssessmentTemplateApi = (params?: object) => {
    return request({
        url: '/SMS/SafetyAssessmentBusinessService/ListTemplate',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//获取被考核员工id
export const getEmployeeAssessmentApi = (params?: object) => {
    return request({
        url: '/SMS/SafetyAssessmentBusinessService/ListEmp',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//获取负责人id
export const getEmployeeAssessmentLeaderApi = (params?: object) => {
    return request({
        url: '/SMS/SafetyAssessmentBusinessService/ListHead',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 获取组织id
export const sysOrgList = (params?: object) => {
	return request({
		url: '/sysOrg/list',
		method: 'get',
		data: params,
	});
}
// 获取考核表
export const getEmployeeAssessmentTableApi = (params?: object) => {
    return request({
        url: '/SMS/SafetyAssessmentBusinessService/Detail',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//上传excel文件
export const postExcel1 = (parameter: object = {}) => {
	return request({
		url: '/SMS/LegalCode/ImportByExcel',
		method: 'post',
		data: parameter,
        multiPartFormData: true,
    } as AxiosRequestConfig);
};

// 安全生成考核表评分
export const postExcel2 = (parameter: object = {}) => {
	return request({
		url: '/SMS/SafetyAssessmentBusinessService/UpdateItem',
		method: 'post',
		data: parameter,
        multiPartFormData: false,
    } as AxiosRequestConfig);
};


/*************** 阶段管理 ***************/
// 查询阶段管理
export const getStageListApi = (params?: object) => {
    return request({
        url: '/SMS/Stage/Page',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 新增阶段管理
export const addStageListApi = (params?: object) => {
    return request({
        url: '/SMS/Stage/CreateV2',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 删除阶段管理
export const delStageListApi = (params?: object) => {
    return request({
        url: '/SMS/Stage/DeleteV2',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 修改阶段管理
export const editStageListApi = (params?: object) => {
    return request({
        url: '/SMS/Stage/UpdateV2',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 获取下拉列表阶段管理
export const getStageListSelectApi = (params?: object) => {
    return request({
        url: '/SMS/Stage/GetList',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 获取详情列表阶段管理
export const getStageListDetailApi = (params?: object) => {
    return request({
        url: '/SMS/Stage/Detail',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}

/*************** 阶段代办 ***************/
// 查询阶段代办
export const getStageTodoListApi = (params?: object) => {
    return request({
        url: '/SMS/StageTodo/GetList',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 新增阶段代办
export const addStageTodoListApi = (params?: object) => {
    return request({
        url: '/SMS/StageTodo/Create',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 删除阶段代办
export const delStageTodoListApi = (params?: object) => {
    return request({
        url: '/SMS/StageTodo/Delete',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 修改阶段代办
export const editStageTodoListApi = (params?: object) => {
    return request({
        url: '/SMS/StageTodo/UpdateV2',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 安全生成考核标准模板下载
export const SecurityGenerationAssessmentStandardDownload = (params?: object) => {
    return request({
        url: '/sysFileInfo/DownImportTemplate',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 安全生成考核标准模板上传
export const SecurityGenerationAssessmentStandardUpload = (params?: object) => {
    return request({
        url: '/SMS/SafetyAssessmentService/BathAddByExcel',
        method: 'post',
        data: params,
        multiPartFormData: true,
    } as AxiosRequestConfig);
}

// 安全职责卡
//查询
export const SecurityResponsibilityCardQuery = (params?: object) => {
    return request({
        url: '/SMS/SMSSecurityResponsibilityCard/GetPage',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 删除
export const SecurityResponsibilityCardDelete = (params?: object) => {
    return request({
        url: '/SMS/SMSSecurityResponsibilityCard/Delete',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//创建
export const SecurityResponsibilityCardCreate = (params?: object) => {
    return request({
        url: '/SMS/SMSSecurityResponsibilityCard/Create',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//更新
export const SecurityResponsibilityCardUpdate = (params?: object) => {
    return request({
        url: '/SMS/SMSSecurityResponsibilityCard/Update',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
/*************** 事故管理 ***************/
//分页查询事故管理
export const getAccidentListApi = (params?: object) => {
    return request({
        url: '/SMS/AccidentReportV3/Page',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//新增事故管理
export const addAccidentListApi = (params?: object) => {
    return request({
        url: '/SMS/AccidentReportV3/Add',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//删除事故管理
export const delAccidentListApi = (params?: object) => {
    return request({
        url: '/SMS/AccidentReportV3/Delete',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//更新事故管理
export const updateAccidentListApi = (params?: object) => {
    return request({
        url: '/SMS/AccidentReportV3/Update',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//详情事故管理
export const getAccidentListDetailApi = (params?: object) => {
    return request({
        url: '/SMS/AccidentReportV3/Detail',
        method: 'get',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
// 发起事故上报申请
export const getAccidentListApplyApi = (params?: object) => {
    return request({
        url: '/SMS/AccidentReportV3/ApplySubimt',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//撤回事故上报申请
export const getAccidentListWithdrawApi = (params?: object) => {
    return request({
        url: '/SMS/AccidentReportV3/ApplyRevocation',
        method: 'post',
        data: params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
/**访客页面**/
export const getVisitorVideoApi = (params?: object) => {
    return request({
        url: '/SMS/VistorLearnVideo/Upload',
        method: 'post',
        data: params,
        multiPartFormData: true,
    } as AxiosRequestConfig);
}
// 访客申请记录列表查询
export const getVisitorApplyListApi = (params?: object) => {
    return request({
        url: '/SMS/SMSVistorHistory/Page',
        method: 'post',
       params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//更新访客入场退场时间
export const updateVisitorEditRuleFormType = (params?: object) => {
    return request({
        url: '/SMS/SMSVistorHistory/UpdateVisaInfo',
        method: 'post',
       data:params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}
//访客申请视频管理列表查询
export const getVisitorRequestVideoListType = (params?: object) => {
    return request({
        url: '/SMS/VistorLearnVideo/Page',
        method: 'post',
      params,
        multiPartFormData: false,
    } as AxiosRequestConfig);
}


export const downloadFileApi = (params?: object) => {
    return request({
        url: '/OMS/ProviderDocument/Query',
        method: 'get',
        data: params,
        multiPartFormData: false,
    }as AxiosRequestConfig);
}

//发送安全生产工作计划消息通知
export const sendSafetyPlanMessageApi = (params?: object) => {
    return request({
        url: '/SMS/SmsDocument/SendMsg',
        method: 'post',
        data: params,
        multiPartFormData: true,
    }as AxiosRequestConfig);
}

//查询部门下面的所有员工
export const getDeptEmployeeListApi = (params?: object) => {
    return request({
        url: '/sysEmp/GetUserSelectorByOrg',
        method: 'get',
        data:params,
        multiPartFormData: false,
    }as AxiosRequestConfig);
}

//下载视频模板
export const downloadVideoTemplateApi = (params?: object) => {
    return request({
        url: '/SMS/VistorLearnVideo/download',
        method: 'post',
        data:params,
        multiPartFormData: false,
    }as AxiosRequestConfig);
}